<!--{eval $_G['home_tpl_titles'] = array($app['name']);}-->
<!--{template common/header}-->

<script type="text/javascript" src="http://static.manyou.com/scripts/my_iframe.js"></script>
<script language="javascript">
var prefixURL = "$my_prefix";
var suffixURL = "$my_suffix";
var queryString = '';
var url = "http://apps.manyou.com/{$my_appId}";
var oldHash = null;
var timer = null;
var appId = '$my_appId';

var server = new MyXD.Server("ifm0");
server.registHandler('iframeHasLoaded');
server.registHandler('setTitle');
server.start();


function iframeHasLoaded(ifm_id) {
	MyXD.Util.showIframe(ifm_id);
	document.getElementById('loading').style.display = 'none';
}

function  htmlspecialchars_decode(string) {
	string = string.toString();
	string = string.replace(/&amp;/g, '&');
	string = string.replace(/&lt;/g, '<');
	string = string.replace(/&gt;/g, '>');
	string = string.replace(/&quot;/g, '"');
	string = string.replace(/&#039;/g, "'");
	return string;

}
function setTitle(x) {
	<!--{eval $my_site_name=htmlspecialchars($_G['setting']['sitename'], ENT_QUOTES);}-->
	var my_site_name = htmlspecialchars_decode('{$my_site_name}');

	x = htmlspecialchars_decode(x);
	document.title = x + my_site_name;
}

</script>
<div id="pt" class="wp"><a href="index.php" class="nvhm">$_G[setting][bbname]</a> &rsaquo; <a href="$_G[setting][navs][5][filename]">$_G[setting][navs][5][navname]</a> {if $app[appname]} &rsaquo; $app[appname]{/if}</div>

<!--{if $isFullscreen==1}-->
	<!--{if $displayUserPanel}-->
	<div id="ct" class="wp cl" style="background-image:none">
		<div class="mn" style='margin-bottom:0'>
		<div class="ch" style="margin-right:-1px;width:646px">
	<!--{else}-->
	<div id="ct" class="wp cl w" style="background-image:none">
		<div class="ch">
	<!--{/if}-->

			<!--{if $canvasTitle}-->
				<label class="wx"><a href="$_G[setting][navs][5][filename]"><!--{eval echo htmlspecialchars($canvasTitle, ENT_QUOTES);}--></a></label>
			<!--{else}-->
				<label class="wx"><a href="$_G[setting][navs][4][filename]">$_G[setting][navs][4][navname]</a></label>
			<!--{/if}-->
		</div>

	<!--{if $displayUserPanel}-->
	</div>
	<div id="sd" class="sd pph">
			{subtemplate common/userabout}
	</div>
	<!--{/if}-->

	<div class="mn">
		<div class="bm" style="padding:0px;margin:0px;">
			{hook/userapp_app_top}
			<div id="mx2note" style="display:none; padding:150px 0;width:970px; margin:1px; text-align:center; background-color:#FFFFBF;  font-size:12px; line-height:14px; color:#DB0000; letter-spacing:1px;">
				{lang no_maxthon2_message}
			</div>
			<div id="loading" style="display:block; width:970px;padding:100px 0 100px 0;text-align:center;color:#999999;font-size:12px;">
				<img src="{IMGDIR}/loading.gif" alt="loading..." align="absmiddle" /> {lang page_loading}
			</div>
			<iframe id="ifm0" frameborder="0" width="970" scrolling="no" height="810" style="position:absolute; top:-5000px; left:-5000px;" src="{$url}"></iframe>
			{hook/userapp_app_bottom}
		</div>
	</div>
<!--{else}-->
<div id="ct" class="wp cl">
	<div class="ch">
		<label class="wx"><a href="$_G[setting][navs][5][filename]">$_G[setting][navs][5][navname]</a></label>
	</div>
	<div class="mn">
		<div class="bm" style="padding:0px;margin:0px;">
			<div id="mx2note" style="display:none; padding:150px 0; margin:1px; text-align:center; background-color:#FFFFBF;  font-size:12px; line-height:14px; color:#DB0000; letter-spacing:1px;">
				{lang no_maxthon2_message}
			</div>
			<div id="loading" style="display:block; padding:100px 0;text-align:center;color:#999;font-size:12px;">
				<img src="{IMGDIR}/loading.gif" alt="loading..." align="absmiddle" /> {lang page_loading}
			</div>
			<iframe id="ifm0" frameborder="0" width="810" scrolling="no" height="810" style="position:absolute; top:-5000px; left:-5000px;" src="{$url}"></iframe>
		</div>
	</div>

	<div class="sd">
		{subtemplate userapp/userapp_menu_list}
	</div>
<!--{/if}-->
</div>
<script type="text/javascript">
if(top.location != location) {
	top.location.href = location.href;
}
</script>
<!--{template common/footer}-->
